package com.example.takeaway.serivce;

import com.example.takeaway.entity.User;
import com.example.takeaway.entity.VO.LoginUser;
import com.example.takeaway.utils.PageResult;

import java.util.List;


/**
 * userService接口
 * 
 * @author ruoyi
 * @date 2025-05-16
 */
public interface IUserService 
{
    //处理登录请求
    public User getuser(LoginUser loginUser);

    public User getuserById(Integer userId);


    /**
     * 查询user
     * 
     * @param userid user主键
     * @return user
     */
    public User selectUserByUserid(Long userid);

    /**
     * 查询user列表
     * 
     * @param user user
     * @return user集合
     */
    public PageResult selectUserList(User user , int pageNum, int pageSize);

    /**
     * 新增user
     * 
     * @param user user
     * @return 结果
     */
    public int insertUser(User user);

    /**
     * 修改user
     * 
     * @param user user
     * @return 结果
     */
    public int updateUser(User user);

    /**
     * 批量删除user
     * 
     * @param userids 需要删除的user主键集合
     * @return 结果
     */
    public int deleteUserByUserids(Long[] userids);

    /**
     * 删除user信息
     * 
     * @param userid user主键
     * @return 结果
     */
    public int deleteUserByUserid(Long userid);
}
